package com.qf.exception;

import com.qf.vo.ResultVo;
import com.qf.vo.ResultVoUtil;
import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

@RestControllerAdvice
public class AirExceptionHandler {
    @ExceptionHandler(AirException.class)
    public ResultVo err(AirException ex){
        ResultVo error = ResultVoUtil.error(ex);
        return error;
    }
}
